package com.forward;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginForward {

    /**
     * 登录成功跳转
     */
    //管理员
    @RequestMapping("/adminLogin")
    public String adminLogin() {
        return "admin/welcome";
    }

    //医生
    @RequestMapping("/doctorLogin")
    public String doctorLogin() {
        return "doctor/profile";
    }

    /**
     * 退出登录
     */
    @RequestMapping(value = "/logout")
    public String logout() {
        return "login";
    }
}
